package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    PageInfo<User> findPage(QueryPageBean queryPageBean);

    List<Role> findRole();

    void add(User user, Integer[] roleIds);

    void edit(User user, Integer[] roleIds);

    List<Integer> findUserById(Integer userId);

    void deleteById(Integer id);
}
